package com.letoken.platform.repo.admin.req.config;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author wyl
 * @date 2022/12/10
 */
@Data
@ApiModel(value = "修改网络节点配置请求对象", description = "修改网络节点配置请求对象")
public class UpdateChainNodeReq {

    @NotNull(message = "编号不能为空")
    @ApiModelProperty(value = "编号",example = "18")
    private Integer id;

    @ApiModelProperty(value = "网络标识",example = "KFC")
    private String netType;

    @ApiModelProperty(value = "网络名称",example = "CPU YOU")
    private String name;

    @ApiModelProperty(value = "网络类型", example = "1")
    private Integer type;

    @Min(value = 0)
    @ApiModelProperty(value = "排序", example = "0")
    private Integer sort;

    @ApiModelProperty(value = "是否使用 0-否 1-是",example = "1")
    private Integer isUse;


}
